package cn.iocoder.yudao.module.mapper;

import cn.iocoder.yudao.module.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentMapper {
    void insertStudent(Student student);
    void updateStudent(Student student);
    void deleteStudentById(Long id);
    @Select("select * from student where student.id=#{id}")
    Student getStudentById(Long  id);
    @Select("select * from student where class_id=#{classId}")
    List<Student> getStudentByClassId(Long classId);
}
